package com.inepex.inechart.shared.util;

public class PaddingUtil {

	
	public static double[] mergePaddings(double[] first, double[] second){
		double[] ret = new double[4];
		for(int i=0;i<4;i++){
			ret[i] = Math.max(first[i], second [i]);
		}
		return ret;
	}
	
	public static double[] addPaddings(double[] first, double[] second){
		double[] ret = new double[4];
		for(int i=0;i<4;i++){
			ret[i] = first[i] + second [i];
		}
		return ret;
	}
}
